'use strict';

module.exports = app => {
  const {STRING, INTEGER, DATE } = app.Sequelize;

  const Noticebar = app.model.define('noticebar', {
    id: { type: INTEGER, primaryKey: true, autoIncrement: true },
    content:{
      type: STRING,
      allowNull: true,
      comment: '通知名称',
    },
    created_at: DATE,
    updated_at: DATE,
  }, {
    sequelize:app.Sequelize,
    modelName: 'noticebar',
    tableName: 'noticebar',
    freezeTableName: true
  });

  return Noticebar;
};